#if !defined(AFX_MODELFILEDLG_H__50EB82A1_BD0A_11D2_AE44_C04D05C10000__INCLUDED_)
#define AFX_MODELFILEDLG_H__50EB82A1_BD0A_11D2_AE44_C04D05C10000__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ModelFileDlg.h : header file
//

#include "Util\MinButton.h"
#include "Util\MinLabel.h"

#define  ALL_MODEL_LABEL  8

class CDMControlCenter;
class CModelData;
class CSystemData;
class CLogData1;

/////////////////////////////////////////////////////////////////////////////
// CModelFileDlg dialog

class CModelFileDlg : public CDialog
{
private:
	CDMControlCenter* m_lnkDMControlCenter;
	CModelData* m_lnkModelData;
	CSystemData* m_lnkSystemData;
	CLogData1* m_lnkLogData;

	int DirCountInDir(char* pn);

// Construction
public:
	char m_szTmp[100];
	int m_ModelCount;
	int m_CurrentSel;
	CString m_strSelect;
	void ModelListBoxInit();
	void LabelInitial();
	void ButtonInitial();
	void PointSelect(int sel);
	void Display(BOOL change);
	int m_nSelect;

	CModelFileDlg(CDMControlCenter* pDMCC, int nSelect, CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CModelFileDlg)
	enum { IDD = IDD_MODEL_DIALOG };
	CMinButton	m_bWaferCount;
	CMinButton	m_bRFIDCheck;
	CMinButton	m_bClampClose;
	CMinButton	m_bUVTime;
	CMinButton	m_bTapeType;
	CMinButton	m_bModelInch;
	CMinButton	m_bExpandingDelay;
	CMinButton	m_bExpandingCheck;
	CMinButton	m_bModelSave;
	CMinButton	m_bModelNew;
	CMinButton	m_bModelFilePgDown;
	CMinButton	m_bModelFilePgUp;
	CMinButton	m_bModelFileDown;
	CMinButton	m_bModelFileUp;	
	CMinButton	m_bModelDelete;
	CMinButton	m_bModelLoad;
	CMinButton  m_bExit;
	CMinLabel	m_sSelectModel;
	CMinLabel	m_sSelectModelTitle;
	CMinLabel	m_sModelCount;
	CMinLabel	m_sCurrentModelTitle;
	CMinLabel	m_sCurrentModel;
	CMinLabel	m_sExpandingCheck;
	CMinLabel	m_sExpandingDelay;
	CMinLabel	m_sModelInch;
	CMinLabel	m_sTapeType;
	CMinLabel	m_sUVTime;	
	CListBox	m_lModelList;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CModelFileDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	char m_cBufGet[50];
	char m_cbuf[50];
	
	double m_tmpDouble[ALL_MODEL_LABEL];
	CMinLabel	m_sData[ALL_MODEL_LABEL];
	CMinButton	m_bButton[ALL_MODEL_LABEL];
	// Generated message map functions
	//{{AFX_MSG(CModelFileDlg)
	afx_msg void OnModelfileup();
	afx_msg void OnModelfiledown();
	afx_msg void OnModelfilepgup();
	afx_msg void OnModelfilepgdn();
	afx_msg void OnModeldelete();
	afx_msg void OnModelload();
	afx_msg void OnExit();
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeModellist();
	afx_msg void OnModelNew();
	afx_msg void OnModelSave();
	afx_msg void OnModelInch();
	afx_msg void OnTapeType();
	afx_msg void OnUvTime();
	afx_msg void OnExpandingDelay();
	afx_msg void OnExpandingCheck();
	afx_msg void OnRfidCheck();
	afx_msg void OnWaferCount();
	afx_msg void OnClampClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MODELFILEDLG_H__50EB82A1_BD0A_11D2_AE44_C04D05C10000__INCLUDED_)
